//
// Created by richard on 11/3/24.
//

#ifndef DATABASE1_H
#define DATABASE1_H

#include <vector>
#include <memory>
#include "concurrency/Pipeline.h"
#include "database/Db.h"
#include "transaction/Transaction.h"

class Database1 {
public:
    explicit Database1(int numRows);
    void executeTransactions(const std::vector<Transaction>& transactions);

    void run(const std::vector<Transaction>& transactions);
private:
    std::unique_ptr<Db> db; // database with 100 rows
    Pipeline pipeline;
};

#endif //DATABASE1_H
